package org.csu.gp_store.service;

import org.csu.gp_store.bo.FactoryBO;
import org.csu.gp_store.entity.FacBusiness;
import org.csu.gp_store.entity.Product;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface FacBusinessService {

    int addFactoryBusiness(FacBusiness facBusiness);

    int changeFacBusiness(FactoryBO factoryBO);

    int deleteFacBusiness(FactoryBO factoryBO);

    boolean facBusinessExist(@NotNull Long ProductID,@NotNull Long FactoryID);

    List<Product> getAllBusiness(@NotNull Long companyID);

    List<FacBusiness> getFacBusiness(@NotNull Long factoryID);

    List<Long> selectFactoryID(@NotNull Long ProductID,@NotNull Long CompanyID);

    List<Long> getAllFactoryByProductID(@NotNull Long productID);
}
